package JavaBase;

public class IncomeTax {

    //Employee emp;
    public void arithmeticTax(Employee emp)
    {
        double taxBefore=emp.getSalary()+emp.getSubsidy();
        double tax=(taxBefore-3500)*emp.tax();
        double taxAfter=taxBefore-tax;
        System.out.println("税前工资："+taxBefore);
        System.out.println("个人所得税："+tax);
        System.out.println("税后工资："+taxAfter);
    }
}
